import Vue from 'vue';
import Vuex from 'vuex';

Vue.use(Vuex);

export default new Vuex.Store({
  state: {
    myProjectCheck: {},
    picAdd: '',
    messageNum: 0,
    inProject: 0,
    modalState: false,
    userOrg: '',
  },
  mutations: {
    // 我的审核
    setMyProjectCheck(state, info) {
      state.myProjectCheck = info;
    },
    setMessageNum(state,info) {
      state.messageNum = info
    },
    // 关闭模态框
    setModalState(state,info) {
      state.modalState = info 
    },
    setUserHead(state,data){
      state.picAdd = data
    },
    setUserOrg(state,info){
      state.userOrg = info
    }
  },
  actions: {
    //
  },
  modules: {
    //
  }
});
